package net.yambal.air.LeafletMap.OverLays
{
	import net.yambal.air.LeafletMap.ILeafletOverlay;
	import net.yambal.air.LeafletMap.LeafletCoreSinglton;
	
	public class LIcon implements ILeafletOverlay{
		private var _leafletIcon:Object;
		public function LIcon(
				iconUrl:String, iconWidth:Number, iconHeight:Number, AnchorX:Number, AnchorY:Number,
                popupAnchorX:Number = 0, popupAnchorY:Number = 0,
				shadowUrl:String = null, shadowWidth:Number = 0, shadowHeight:Number = 0, shadowAnchorX:Number = 0, shadowAnchorY:Number = 0
				){
	
			this._leafletIcon =  LeafletCoreSinglton.instance.icon({
				iconUrl:iconUrl,
				iconSize: [iconWidth, iconHeight],
				iconAnchor: [AnchorX, AnchorY],
                popupAnchor: [popupAnchorX, popupAnchorY],
				shadowUrl:shadowUrl,
				shadowSize:[shadowWidth, shadowHeight],
				shadowAnchor: [shadowAnchorX, shadowAnchorY]
			});
		}
		public function get LeafObject():Object{
			return this._leafletIcon;
		}
        
        public function bindPopup(s:String):ILeafletOverlay{
            return null;
        }
        
        public function openPopup():ILeafletOverlay{
            return null;
        }
	}
}